package tasks.task00;

import tasks.task01.task01;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * Created by IntelliJ IDEA.
 * User: 07grishin
 * Date: 26.02.2010
 * Time: 12:11:47
 */
public class task00 {
    private static JTextArea a;


    public static void main(String[] args) {

        JFrame f = new JFrame("Tasks.Andrej");
        f.setSize(500, 530);

        Container content = f.getContentPane();
        content.setBackground(Color.black);
        content.setLayout(new FlowLayout());

        JTextArea a = new JTextArea(1,1);
        a.setText("Grishin Andrej");
        a.setEditable(false);
        a.setLineWrap(true);
        a.setWrapStyleWord(true);
        a.setBackground(Color.white);
        content.add(a);



        JLabel j1 = new JLabel();
        ImageIcon i1 = new ImageIcon("a.jpg");
        j1.setIcon(i1);
        //j1.setText("asdf");
        j1.setSize(i1.getIconWidth(), i1.getIconHeight());
        content.add(j1);

        JButton b1 = new JButton("Button 1");
        content.add(b1);

        b1.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent e){
                task01.main(new String[0]);
            }
        });
        content.add(new JButton("Button 2"));
        content.add(new JButton("Button 3"));
        content.add(new JButton("Button 4"));
        content.add(new JButton("Button 5"));
        content.add(new JButton("Button 6"));
        content.add(new JButton("Button 7"));
        content.add(new JButton("Button 8"));
        content.add(new JButton("Button 9"));
        content.add(new JButton("Button 10"));
        f.setVisible(true);


    }
}
